﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.actions {
    import Classes.*;

    public class ActionBusinessPickup extends ActionPickup {

        public function ActionBusinessPickup(_arg1:NPC, _arg2:int, _arg3:MapResource){
            super(_arg1, _arg2, _arg3);
        }
        override protected function onAppear():void{
            super.onAppear();
        }
        override protected function onTravel():void{
            super.onTravel();
            if (!getTarget()){
                return;
            };
        }
        override protected function onPickup():void{
            super.onPickup();
            var _local1:HarvestableResource = (getTarget() as HarvestableResource);
            if (!_local1){
                return;
            };
            m_npc.getStateMachine().addActions(new ActionProgressBar(m_npc, _local1, _local1.getActionText(), _local1.getHarvestTime()));
        }
        override protected function onDisappear():void{
            super.onDisappear();
        }

    }
}//package Classes.actions 
